package com.sayimo.maker.commons.utils;

import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.impl.HttpSolrServer;

public class SearchUtil {
	
	private static SolrServer server = null;
	
	private SearchUtil(){}
	
	public static SolrServer getSolrServer(){
		
		if (server == null) {
			synchronized (SearchUtil.class) {
				server = new HttpSolrServer(PropertiesUtils.getValue("SOLRSERVER_BASEURL"));
			}
		}
		
		return server;
	}
}
